package cn.com.pattern.socket;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;

import org.apache.log4j.Logger;

import cn.com.http.httpheader.HttpHeader;
import cn.com.logger.LoggerManager;

public class JServer {
	private static JServer jServer  = new JServer();
	private static Logger log = LoggerManager.getLogger(HttpHeader.class);
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try{
			if(log.isDebugEnabled()) log.debug("Start Server...");
		}catch(Exception e){
			if(log.isDebugEnabled()) log.error("Error", e);
			else e.printStackTrace();
		}
		if(jServer.startServer());
	}

	private boolean startServer(){
		return true;
	}
}
